package com.oa.hyperion.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.oa.hyperion.entity.Menu;
import com.oa.hyperion.entity.RoleMenuMerge;
import com.oa.hyperion.repository.RoleMenuMapper;
import com.oa.hyperion.service.RoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.Function;

/**
 * @author Liu
 * @date 2022年01月18日 21:21
 */
@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenuMerge> implements RoleMenuService {

    private final RoleMenuMapper roleMenuMapper;
    public RoleMenuServiceImpl(RoleMenuMapper roleMenuMapper) {
        this.roleMenuMapper = roleMenuMapper;
    }

    @Override
    public List<Menu> findMenuByRole(int id) {
        return roleMenuMapper.findMenuByRole(id);
    }
}
